package com.hongdee.scm.inputinvoice.entity;

import com.hongdee.base.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by Mr. Xu on 2017/5/11.
 * 采购发票管理
 */
@Entity
@Table(name = "T_Scm_Input_Invoice")
public class TScmInputInvoice extends BaseEntity{
    /**
     * 发票编号
     */
    @Column(name = "invoice_num", length=32, columnDefinition = " VARCHAR(32) COMMENT '发票编号' ")
    private String invoiceNum;
    /**
     * 发票日期
     */
    @Column(name = "invoice_date", length=32, columnDefinition = " VARCHAR(32) COMMENT '发票日期' ")
    private String invoiceDate;
    /**
     * 发票金额
     */
    @Column(name = "invoice_total", length=32, columnDefinition = " VARCHAR(32) COMMENT '发票金额' ")
    private String invoiceTotal;
    /**
     * 总金额
     */
    @Column(name = "invoice_temp_total", length=32, columnDefinition = " VARCHAR(32) COMMENT '总金额' ")
    private String invoiceTempTotal;
    /**
     * 红票金额
     */
    @Column(name = "invoice_red_money", length=32, columnDefinition = " VARCHAR(32) COMMENT '红票金额' ")
    private String invoiceRedMoney;
    /**
     * 红票关联普票id
     */
    @Column(name = "relation_id", length=128, columnDefinition = " VARCHAR(128) COMMENT '红票关联普票id' ")
    private String relationId;
    /**
     * 红票关联普票编号
     */
    @Column(name = "relation_num", length=128, columnDefinition = " VARCHAR(128) COMMENT '红票关联普票编号' ")
    private String relationNum;
    /**
     * 录入人员
     */
    @Column(name = "input_name", length=32, columnDefinition = " VARCHAR(32) COMMENT '录入人员' ")
    private String inputName;
    /**
     * 发票类型(0增值税专票、1增值税普票、2红冲发票)
     */
    @Column(name = "invoice_type", length=1, columnDefinition = " VARCHAR(1) COMMENT '发票类型' ")
    private String invoiceType;
    /**
     * 开票单位
     */
    @Column(name = "invoice_unit", length=128, columnDefinition = " VARCHAR(128) COMMENT '开票单位' ")
    private String invoiceUnit;
    /**
     * 是否月结（0未月结1已月结）
     */
    @Column(name = "monthly_status", length =1, columnDefinition = "VARCHAR(1) COMMENT '是否月结（0未月结1已月结）'")
    private String monthlyStatus;

    //公司ID
    @Column(name="company_id",length =32, columnDefinition = "VARCHAR(32) COMMENT '公司ID'")
    private String companyId;

    public String getRelationNum() {
        return relationNum;
    }

    public void setRelationNum(String relationNum) {
        this.relationNum = relationNum;
    }

    public String getMonthlyStatus() {
        return monthlyStatus;
    }

    public void setMonthlyStatus(String monthlyStatus) {
        this.monthlyStatus = monthlyStatus;
    }

    public String getInvoiceRedMoney() {
        return invoiceRedMoney;
    }

    public void setInvoiceRedMoney(String invoiceRedMoney) {
        this.invoiceRedMoney = invoiceRedMoney;
    }

    public String getRelationId() {
        return relationId;
    }

    public void setRelationId(String relationId) {
        this.relationId = relationId;
    }

    public String getInvoiceUnit() {
        return invoiceUnit;
    }

    public void setInvoiceUnit(String invoiceUnit) {
        this.invoiceUnit = invoiceUnit;
    }

    public String getInvoiceType() {
        return invoiceType;
    }

    public void setInvoiceType(String invoiceType) {
        this.invoiceType = invoiceType;
    }

    public String getInputName() {
        return inputName;
    }

    public void setInputName(String inputName) {
        this.inputName = inputName;
    }

    public String getInvoiceNum() {
        return invoiceNum;
    }

    public void setInvoiceNum(String invoiceNum) {
        this.invoiceNum = invoiceNum;
    }

    public String getInvoiceDate() {
        return invoiceDate;
    }

    public void setInvoiceDate(String invoiceDate) {
        this.invoiceDate = invoiceDate;
    }

    public String getInvoiceTotal() {
        return invoiceTotal;
    }

    public void setInvoiceTotal(String invoiceTotal) {
        this.invoiceTotal = invoiceTotal;
    }

    public String getInvoiceTempTotal() {
        return invoiceTempTotal;
    }

    public void setInvoiceTempTotal(String invoiceTempTotal) {
        this.invoiceTempTotal = invoiceTempTotal;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }
}
